package com.adfdi;

import oracle.adf.model.BindingContext;

import oracle.binding.BindingContainer;
import oracle.binding.OperationBinding;

public class QueryBean {
    private String closeWindow = "initial";
    public QueryBean() {
    }

    public BindingContainer getBindings() {
        return BindingContext.getCurrent().getCurrentBindingsEntry();
    }

    public String Query_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("queryEmployeeByDeptId");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return "Continue";
        }
        return "Continue";
    }
}
